package com.wdb007.venus.wss.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.wdb007.venus.wss.service.WebSocketServerService;

import io.netty.channel.ChannelHandlerContext;

@Service("bookGridCheckFixedResService")
public class BookGridCheckFixedResService implements WebSocketServerService {

	private static Logger logger = LoggerFactory.getLogger(BookGridCheckFixedResService.class);
	
	@Override
	public String doService(ChannelHandlerContext ctx, String request) throws Exception {
		
		JSONObject jsonObj = JSON.parseObject(request);
//		logger.info("BookCaseStatusRes 接收websocket响应信息: {}", jsonObj.toJSONString());
		logger.info("debug {}: 书格{}, 响应内容{}", jsonObj.getString("action"), jsonObj.getString("bookGridId"), jsonObj.toJSONString());
		return null;
	}

}
